package net.stock.db;

import javax.jdo.annotations.*;
import java.util.Date;
import java.util.Map;

/**
 * @author naim
 * @date Mar 2, 2010
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class DayPrice {
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Long id;

    @Persistent
    private int dateInt;

    @Persistent
    private String item;

    @Persistent
    private Float price;

    public DayPrice(int dateInt, String item, Float price) {
        this.dateInt = dateInt;
        this.item = item;
        this.price = price;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public int getDateInt() {
        return dateInt;
    }

    public void setDateInt(int dateInt) {
        this.dateInt = dateInt;
    }

    public String getItem() {
        return item;
    }

    public void setItem(String item) {
        this.item = item;
    }

    public Float getPrice() {
        return price;
    }

    public void setPrice(Float price) {
        this.price = price;
    }
}
